#pragma once
#include <sys/types.h>
#include <sys/socket.h>

#define Die(code) exit(code)
#define CONV(v) (sockaddr *)v
#define BACKLOG 8
enum Code
{
    SOCKET_ERROR = 1,
    BIND_ERROR,
    LISTEN_ERROR,
    USAGE_ERROR,
    EPOLLCREATE_ERROR
};